What is the meaning of the word "defensive measure"?

Definitions:

  1. An action taken to avoid or prevent danger from outside threats. Often used in a military or natural-disaster context. copy to clipboard noun
    • With the rain continuing to fall, we set up sandbags as a defensive measure against flooding. copy to clipboard